package com.gton.lpl.service.impl;

import com.gton.lpl.entity.GpMenu;
import com.gton.lpl.mapper.GpMenuMapper;
import com.gton.lpl.service.GpMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author GuoTong
 * @since 2021-10-17
 */
@Service
public class GpMenuServiceImpl extends ServiceImpl<GpMenuMapper, GpMenu> implements GpMenuService {

    @Resource
    private GpMenuMapper gpMenuMapper;

    //自连接 分组
    @Override
    public List<GpMenu> selfBySelf() {

        return gpMenuMapper.selectMenuByGroup();
    }
}
